import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import http from '@/libs/http';
import api from '@/libs/api';
import util from '@/libs/util';

Vue.config.productionTip = false;
Vue.use(iView);
Vue.prototype.$http = http;
Vue.prototype.$api = api;
Vue.prototype.$util = util;

new Vue({
  el: '#app',
  router: router,
  store: store,
  render: (h) => h(App),
  mounted() {
    let that = this;

    // 测试
    that.$http.get(that.$api.TEST).then((res) => {
      console.log('A=>' + JSON.stringify(res));
    });
  }
});

